package com.gxa.pingan.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author ChenJin
 * @date 2021/10/25 14:48
 * Description:
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("User")
public class User implements Serializable {
    /**
     * 用户编号
     */
    @ApiModelProperty(name = "id",value = "id",example = "用户编号",dataType = "Long")
    @ExcelProperty(value = "用户编号",index = 0)
    private Long id;
    /**
     * 联系人名字
     */
    @ApiModelProperty(name = "relationName",value = "relationName",example = "联系人名字",dataType = "String")
    @ExcelProperty(value = "联系人名字",index = 1)
    private String relationName;
    /**
     * 联系电话
     */
    @ApiModelProperty(name = "phone",value = "phone",example = "联系电话",dataType = "String")
    @ExcelProperty(value = "联系电话",index = 2)
    private String phone;
    /**
     * 身份证号
     */
    @ApiModelProperty(name = "idCard",value = "idCard",example = "身份证号",dataType = "String")
    @ExcelProperty(value = "身份证号",index = 3)
    private String idCard;
    /**
     * 最后登录时间，每次登录的时候更新
     */
    @ApiModelProperty(name = "loginTime",value = "loginTime",example = "最后登录时间，每次登录的时候更新",dataType = "Timestamp")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelProperty(value = "最后登录时间",index = 4)
    private Date loginTime;
}